package com.cqjtu.service.serviceImpl;

import com.cqjtu.mapper.AttendanceMapper;
import com.cqjtu.pojo.*;
import com.cqjtu.service.IAttendanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttendanceServiceImpl implements IAttendanceService {

    @Autowired
    private AttendanceMapper attendanceMapper;

    @Override
    public List<AttendanceWorkerTimeVo> getWorkerTimes(AttendanceWorkerTimeDto attendanceWorkerTimeDto) {
        return attendanceMapper.getWorkerTimes(attendanceWorkerTimeDto);
    }

    public List<AttendanceTeamWorkerVo> getTeamWorker(AttendanceTeamWorkerDto attendanceTeamWorkerDto) {
        return attendanceMapper.getTeamWorker(attendanceTeamWorkerDto);
    }

    @Override
    public List<AttendanceListVo> getAttendanceList(AttendanceListDto attendanceListDto) {
        return attendanceMapper.getAttendanceList(attendanceListDto);
    }

    @Override
    public List<AttendanceStateVo> getAttendanceState(String attendanceDate) {
        return attendanceMapper.getAttendanceState(attendanceDate);
    }
}
